<?
/*调用首页一定数量的模特分类*/


include_once("base.php");

$_model_term_nid=$_REQUEST['nid'];

//用封装的语句获取对应的数据
$_model_term_list_detail=select_one_line_all_items($table_prefix."detail","belong = 'product' and publish = '1' and nid = '".$_model_term_nid."' ");

//$list = [];
//for($i=0;$i<count($_model_term_list_detail);$i++){
  //  $nid = $_model_term_list_detail[$i][nid];
    //$model_detail_list=select_lines_all_items($table_prefix."detail","nid desc","nid = '".$nid."' ","");
    //$list + $model_detail_list;
    //$list = array_merge_recursive($list,$model_detail_list);
//};
//print_r2($_model_term_list_detail);打印数据



//为了保持格式，result为输出结果。这里把上面语句得到的结果赋值。
$result=$_model_term_list_detail;
 
//按照格式输出数据
echo out("success",0,$result);


?>